<template>
  <div>
    <template>
      <van-card
        :price="item.price"
        :desc="item.desc"
        :title="item.title"
        :thumb="'http://liufusong.top:8080' + item.houseImg"
        @click="housesDetial(item.houseCode)"
      >
        <template #tags>
          <van-tag color="#e1f5f8" text-color="#39becd"> 近地铁 </van-tag>
        </template>
      </van-card>
    </template>
  </div>
</template>

<script>
export default {
  name: 'HouseItem',
  props: {
    item: {
      type: Object,
      requested: true
    }
  },
  methods: {
    housesDetial (id) {
      // console.log(id);
      this.$router.push(
        {
          name: 'detail',
          params: {
            id
          }
        },
        () => {}
      )
    }
  }
}
</script>

<style></style>
